package liuliu.throughwaring.model;

import java.io.Serializable;

import liuliu.custom.method.Utils;

/**
 * Created by Administrator on 2015/11/11.企业信息模型
 */
public class CompanyModel implements Serializable {
    private int id;
    private String CompanyId;//企业编码
    private String CompanyType;//企业类型
    private String CompanyName;//企业名称
    private String CompanyArea;//所属辖区
    private String CompanyLegalPerson;//法定代表人
    private String CompanySecurityPerson;//治安负责人
    private String CompanyPhoneNumber;//联系电话
    private String CompanyEastPoint;//东径（123.123456）
    private String CompanyNorthPoint;//北纬
    private String CompanyOveralImageId;//企业照片
    private String CompanyOveralImage;
    private String CompanyOveralImageUrl;//企业照片的URL
    private String CompanyPoliceId;//民警编号
    private String CompanyTerminalId;//设备编号
    private String CompanyCreateTime;//企业创建时间
    private String CompanyChangeTime;//企业修改时间
    private String CompanyComment;//备注
    private String CompanyAddress;//地址

    private String HMenpai;//门牌号码
    private String HIdcard;//房主证件号码
    private String HHuxing;//户型信息

    private String IsUpLoad;//是否上传成功（1,成功。0，未成功。）
    private String IsPush;//0是正在推送，接收后返回1 ,2无关
    private int HRentNum;//租赁人数

    public String getInfo() {

        String info = "PersonCompanyId=" + Utils.URLEncode(getCompanyId()) + "&" +
                "PersonCreateTimeBegin=" + "2000-01-01 00:00:00" + "&" +
                "PersonCreateTimeEnd=" + "2900-01-01 00:00:00";
        if (this.getCompanyType().equals("Company"))
            info += "&PersonStatus=OnJob";
        else if (this.getCompanyType().equals("Lease"))
            info += "&PersonStatus=CheckIn";
        else
            info += "&PersonStatus=None";
        return info;
    }

    public String getAddInfo() {
        String info = "";
        if (!Utils.isEmptyString(this.getCompanyId()))
            info = "CompanyId=" + this.getCompanyId() + "&";

        info += "CompanyType=" + Utils.URLEncode(this.getCompanyType())
                + "&" + "CompanyName="
                + Utils.URLEncode(this.getCompanyName()) + "&"
                + "CompanyAddress="
                + Utils.URLEncode(this.getCompanyAddress()) + "&"
                + "CompanyArea=" + Utils.URLEncode(this.getCompanyArea())
                + "&" + "CompanyLegalPerson="
                + Utils.URLEncode(this.getCompanyLegalPerson()) + "&"
                + "CompanySecurityPerson="
                + Utils.URLEncode(this.getCompanySecurityPerson()) + "&"
                + "CompanyPhoneNumber="
                + Utils.URLEncode(this.getCompanyPhoneNumber()) + "&"
                + "CompanyEastPoint="
                + Utils.URLEncode(this.getCompanyEastPoint()) + "&"
                + "CompanyNorthPoint="
                + Utils.URLEncode(this.getCompanyNorthPoint()) + "&"
                + "CompanyPoliceId="
                + Utils.URLEncode(this.getCompanyPoliceId()) + "&"
                + "CompanyTerminalId="
                + Utils.URLEncode(this.getCompanyTerminalId()) + "&"
                + "Comment=" + Utils.URLEncode(this.getCompanyComment()) + "&" +
                "IsPush=" + Utils.URLEncode(this.getIsPush());

        if (!Utils.isEmptyString(this.getCompanyOveralImage()))
            info += "&CompanyOveralImage="
                    + Utils.URLEncodeImage(this.getCompanyOveralImage());
        return info;
    }

    public int getHRentNum() {
        return HRentNum;
    }

    public void setHRentNum(int HRentNum) {
        this.HRentNum = HRentNum;
    }

    public String getHHuxing() {
        return HHuxing;
    }

    public void setHHuxing(String HHuxing) {
        this.HHuxing = HHuxing;
    }

    public String getHMenpai() {
        return HMenpai;
    }

    public void setHMenpai(String HMenpai) {
        this.HMenpai = HMenpai;
    }

    public String getHIdcard() {
        return HIdcard;
    }

    public void setHIdcard(String HIdcard) {
        this.HIdcard = HIdcard;
    }

    public String getCompanyOveralImageUrl() {
        return CompanyOveralImageUrl;
    }

    public void setCompanyOveralImageUrl(String companyOveralImageUrl) {
        CompanyOveralImageUrl = companyOveralImageUrl;
    }

    public String getCompanyOveralImageId() {
        return CompanyOveralImageId;
    }

    public void setCompanyOveralImageId(String companyOveralImageId) {
        CompanyOveralImageId = companyOveralImageId;
    }

    public String getIsPush() {
        return IsPush;
    }

    public void setIsPush(String isPush) {
        IsPush = isPush;
    }

    public String getCompanyAddress() {
        return CompanyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        CompanyAddress = companyAddress;
    }

    public String getCompanyArea() {
        return CompanyArea;
    }

    public void setCompanyArea(String companyArea) {
        CompanyArea = companyArea;
    }

    public String getCompanyChangeTime() {
        return CompanyChangeTime;
    }

    public void setCompanyChangeTime(String companyChangeTime) {
        CompanyChangeTime = companyChangeTime;
    }

    public String getCompanyComment() {
        return CompanyComment;
    }

    public void setCompanyComment(String companyComment) {
        CompanyComment = companyComment;
    }

    public String getCompanyCreateTime() {
        return CompanyCreateTime;
    }

    public void setCompanyCreateTime(String companyCreateTime) {
        CompanyCreateTime = companyCreateTime;
    }

    public String getCompanyEastPoint() {
        return CompanyEastPoint;
    }

    public void setCompanyEastPoint(String companyEastPoint) {
        CompanyEastPoint = companyEastPoint;
    }

    public String getCompanyId() {
        return CompanyId;
    }

    public void setCompanyId(String companyId) {
        CompanyId = companyId;
    }

    public String getCompanyLegalPerson() {
        return CompanyLegalPerson;
    }

    public void setCompanyLegalPerson(String companyLegalPerson) {
        CompanyLegalPerson = companyLegalPerson;
    }

    public String getCompanyName() {
        return CompanyName;
    }

    public void setCompanyName(String companyName) {
        CompanyName = companyName;
    }

    public String getCompanyNorthPoint() {
        return CompanyNorthPoint;
    }

    public void setCompanyNorthPoint(String companyNorthPoint) {
        CompanyNorthPoint = companyNorthPoint;
    }

    public String getCompanyOveralImage() {
        return CompanyOveralImage;
    }

    public void setCompanyOveralImage(String companyOveralImage) {
        CompanyOveralImage = companyOveralImage;
    }

    public String getCompanyPhoneNumber() {
        return CompanyPhoneNumber;
    }

    public void setCompanyPhoneNumber(String companyPhoneNumber) {
        CompanyPhoneNumber = companyPhoneNumber;
    }

    public String getCompanyPoliceId() {
        return CompanyPoliceId;
    }

    public void setCompanyPoliceId(String companyPoliceId) {
        CompanyPoliceId = companyPoliceId;
    }

    public String getCompanySecurityPerson() {
        return CompanySecurityPerson;
    }

    public void setCompanySecurityPerson(String companySecurityPerson) {
        CompanySecurityPerson = companySecurityPerson;
    }

    public String getCompanyTerminalId() {
        return CompanyTerminalId;
    }

    public void setCompanyTerminalId(String companyTerminalId) {
        CompanyTerminalId = companyTerminalId;
    }

    public String getCompanyType() {
        return CompanyType;
    }

    public void setCompanyType(String companyType) {
        CompanyType = companyType;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getIsUpLoad() {
        return IsUpLoad;
    }

    public String isIsUpLoad() {
        return IsUpLoad;
    }

    public void setIsUpLoad(String isUpLoad) {
        IsUpLoad = isUpLoad;
    }
}
